﻿using System.Collections.Generic;
using NetMsg.Card;

namespace AIClient.Configs
{
    public enum SkillUseType
    {
        Manual
        ,Auto
    }

    public enum SkillUseTime
    {
        Admission
      , EachRound
      , SelfRound
      , Death
    }

    // 卡牌属性配置
    public class CardCfg
    {
        public int          CardId;
        public SkillUseType SkillUseType;
        public SkillUseTime SkillUseTime;
        public int          Power;
        public CardType     CardType;
        public int          Health;
        public int          Attack;
    }

    public enum CardType
    {
        Vanguard
      , Guard
    }

    public class CardCfgs
    {
        public List<CardCfg> Table;

        public CardCfg this[int index]
        {
            get
            {
                if (index < 1 || index > Table.Count)
                    return null;

                return Table[index - 1];
            }
        }
    }
}